package cn.bestick.weightrecord.model;

import java.sql.Timestamp;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Bestick
 * Timestamp: 2016/7/8
 * Time: 16:20
 * Url: http://www.bestick.cn
 * Copyright © 2015-2016 Bestick All rights reserved
 * -----------------------------------------------------------
 * 会当凌绝顶，一览众山小。
 */
public class User {

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 性别
     */
    private String sex;

    /**
     * 用户密码
     */
    private String password;

    /**
     * 预期体重
     */
    private double expectedWeight;

    /**
     * 注册时间
     */
    private Timestamp signupTime;

    /**
     * 个性签名
     */
    private String signature;

    /**
     * 邮箱
     */
    private String email;

    /**
     * ip
     */
    private String ip;

    /**
     * state 0封号，1普通用户，2管理员
     */
    private Integer state = 1;

    /**
     * Record List
     */
    private List<Record> recordList;

    /**
     * StudyRecord List
     */
    private List<StudyRecord> studyRecordList;

    public User() {
    }

    public User(String userName, String sex, String password, double expectedWeight, Timestamp signupTime, String signature, String email, String ip, Integer state, List<Record> recordList) {
        this.userName = userName;
        this.sex = sex;
        this.password = password;
        this.expectedWeight = expectedWeight;
        this.signupTime = signupTime;
        this.signature = signature;
        this.email = email;
        this.ip = ip;
        this.state = state;
        this.recordList = recordList;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getExpectedWeight() {
        return expectedWeight;
    }

    public void setExpectedWeight(double expectedWeight) {
        this.expectedWeight = expectedWeight;
    }

    public Timestamp getSignupTime() {
        return signupTime;
    }

    public void setSignupTime(Timestamp signupTime) {
        this.signupTime = signupTime;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public List<Record> getRecordList() {
        return recordList;
    }

    public void setRecordList(List<Record> recordList) {
        this.recordList = recordList;
    }

    public List<StudyRecord> getStudyRecordList() {
        return studyRecordList;
    }

    public void setStudyRecordList(List<StudyRecord> studyRecordList) {
        this.studyRecordList = studyRecordList;
    }
}